/* ========== TEMA – Canlı & Farklı ========== */
:root {
  --bg-dark: #050508;
  --bg-mid: #0f0f1a;
  --bg-accent: #1a1a2e;
  --text: #f0f0f5;
  --text-muted: #b0b0b0;
  --accent-cyan: #00d4ff;
  --accent-teal: #00ffb3;
  --accent-violet: #a855f7;
  --glow-left: #0066ff;
  --glow-right: #00ccaa;
  --card-bg: rgba(10, 10, 20, 0.6);
  --card-border: rgba(0, 212, 255, 0.12);
  --card-border-hover: rgba(0, 212, 255, 0.45);
  --nav-bg: rgba(5, 5, 15, 0.85);
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 40%, var(--bg-accent) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND GLOW – Daha canlı */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.26;
  z-index: -1;
  animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.32; }
}

body::before {
  background: var(--glow-left);
  top: -200px;
  left: -200px;
}

body::after {
  background: var(--glow-right);
  bottom: -200px;
  right: -200px;
}

/* GENERAL */
section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  /* Added initial state for scroll animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

/* Hero section should be visible immediately */
section.hero {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal), var(--accent-violet));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  animation: gradient-text 4s ease infinite;
}

@keyframes gradient-text {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* HERO */
.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

/* PROFILE */
.profile-wrapper {
  width: 330px;
  height: 330px;
  position: relative;
  margin-bottom: 30px;
}

.profile-wrapper::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet), var(--accent-teal));
  filter: blur(35px);
  opacity: 0.8;
  animation: profile-glow 4s ease-in-out infinite;
}

@keyframes profile-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.profile-img {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  object-fit: cover;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5), 0 0 60px rgba(168, 85, 247, 0.2);
}

/* NAME – Canlı gradient + hafif glow */
.hero-name {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal), var(--accent-violet));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
  animation: gradient-shift 4s ease infinite;
  letter-spacing: -0.02em;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 22px;
  background: linear-gradient(90deg, #b8f0ff, #7dd3fc, var(--accent-cyan), var(--accent-teal));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 10px;
  animation: gradient-shift 3.5s ease infinite;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* SOCIAL */
.social-links {
  margin-top: 32px;
  display: flex;
  gap: 64px;
}

/* Social links start white, change color only on click */
.social-link {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: color 0.35s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
  padding: 12px 20px;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.social-link i {
  font-size: 20px;
  transition: color 0.35s ease, background 0.35s ease,
    -webkit-background-clip 0.35s ease, -webkit-text-fill-color 0.35s ease;
}

/* Hover: only movement + underline */
.social-link:hover {
  transform: translateY(-2px);
}

/* Underline animation */
.social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.social-link:hover::after {
  width: 100%;
}

.social-link.clicked::after {
  width: 100%;
  transition: width 0.2s ease;
}

/* Click color effects - GitHub turns black */
.social-github.clicked {
  color: #000000;
  transition: color 0.35s ease;
}

.social-github.clicked i {
  color: #000000;
  transition: color 0.35s ease;
}

/* Click color effects - LinkedIn turns blue */
.social-linkedin.clicked {
  color: #0077b5;
  transition: color 0.35s ease;
}

.social-linkedin.clicked i {
  color: #0077b5;
  transition: color 0.35s ease;
}

/* Click color effects - Instagram gradient */
.social-instagram.clicked {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.35s ease, -webkit-background-clip 0.35s ease,
    -webkit-text-fill-color 0.35s ease;
}

.social-instagram.clicked i {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.35s ease, -webkit-background-clip 0.35s ease,
    -webkit-text-fill-color 0.35s ease;
}

/* CARD – Canlı border + glow */
.card {
  max-width: 860px;
  margin: 8px auto 0;
  padding: 48px 56px;
  background: var(--card-bg);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.08);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.25);
}

.card p {
  margin-bottom: 20px;
  font-size: 17px;
}

/* NEWSLETTER SECTION */
#newsletter {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.newsletter-card {
  text-align: center;
  padding: 40px 48px;
}

.newsletter-description {
  color: #d0d0d0;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  color: var(--accent-cyan);
  font-size: 18px;
  z-index: 1;
}

.email-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #eaeaea;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.email-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

.email-input::placeholder {
  color: #8a8a8a;
}

.submit-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  border: none;
  border-radius: 14px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.45), 0 0 30px rgba(0, 255, 179, 0.2);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.55), 0 0 50px rgba(0, 255, 179, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(0, 255, 85, 0.15);
  color: #00ff55;
  border: 1px solid rgba(0, 255, 85, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(255, 0, 0, 0.15);
  color: #ff5555;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

/* NAVIGATION – Daha canlı */
.main-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  padding: 8px;
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-link {
  color: #eaeaea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(0, 212, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 255, 179, 0.25);
  transform: translateY(-1px);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: rgba(26, 26, 26, 0.3);
  border-radius: 2px;
}

.nav-link i {
  font-size: 15px;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link.active i {
  transform: scale(1.15);
}

/* PROJECTS SECTION */
#projects {
  max-width: 1200px;
  margin: 30px auto 70px;
  padding: 0 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 80px rgba(0, 212, 255, 0.25), 0 0 50px rgba(0, 212, 255, 0.15);
  border-color: var(--card-border-hover);
}

.project-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Project Date - Gelecekte kullanılacak */
.project-date {
  color: #a0a0a0;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-date i {
  color: var(--accent-cyan);
  font-size: 12px;
}

.project-description {
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  flex-grow: 0;
}

.tech-tag {
  background: rgba(0, 212, 255, 0.18);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 255, 0.35);
  transition: box-shadow 0.3s ease;
}

.tech-tag:hover {
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

.project-links {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link {
  color: #eaeaea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.project-link:hover {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #0a0a0a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.45);
}

.project-link i {
  font-size: 16px;
}

/* BLOG HERO */
.blog-hero {
  min-height: 60vh;
  padding: 40px 20px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(0, 198, 255, 0.2);
  touch-action: manipulation;
}

.blog-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.4);
}

.blog-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.55);
}

.apps-btn {
  background: var(--card-bg);
  color: var(--text);
  border: 2px solid rgba(0, 212, 255, 0.35);
}

.apps-btn:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

/* TABS SECTION */
.tabs-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.tabs-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

.tab-btn {
  padding: 16px 32px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #b0b0b0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  bottom: -2px;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.tab-btn:hover {
  color: #eaeaea;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* TAB CONTENT */
.tab-content {
  display: none;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.tab-content.active {
  display: block;
}

/* BLOG FILTERS */
.blog-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.filter-btn:hover {
  background: rgba(0, 198, 255, 0.1);
  border-color: rgba(0, 198, 255, 0.3);
  color: #00c6ff;
}

.filter-btn.active {
  background: rgba(0, 212, 255, 0.22);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.blog-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid var(--card-border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 80px rgba(0, 212, 255, 0.25), 0 0 50px rgba(0, 212, 255, 0.15);
  border-color: var(--card-border-hover);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.blog-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
}

.blog-date {
  color: #8be9fd;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.blog-date i {
  font-size: 12px;
}

.blog-description {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(0, 198, 255, 0.15);
  color: #00c6ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0, 198, 255, 0.3);
}

.blog-read-more {
  color: #00c6ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  color: #00ffd5;
  gap: 12px;
}

.blog-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00c6ff, #00ffd5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #1a1a1a;
}

.blog-date {
  color: #8be9fd;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-date i {
  font-size: 12px;
}

.blog-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #00c6ff, #00ffd5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-description {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(0, 198, 255, 0.15);
  color: #00c6ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0, 198, 255, 0.3);
}

/* APPLICATIONS SECTION */
#applications {
  max-width: 1200px;
  margin: 70px auto;
  padding: 0 20px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.app-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid var(--card-border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 80px rgba(0, 212, 255, 0.25), 0 0 50px rgba(0, 212, 255, 0.15);
  border-color: var(--card-border-hover);
}

.app-status {
  position: absolute;
  top: 20px;
  right: 20px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.status-badge.live {
  background: rgba(0, 255, 85, 0.2);
  color: #00ff55;
  border: 1px solid rgba(0, 255, 85, 0.3);
}

.status-badge.experimental {
  background: rgba(255, 165, 0, 0.2);
  color: #ffaa00;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00ffd5, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #1a1a1a;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 10px;
  background: linear-gradient(90deg, #00ffd5, #00c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-description {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.app-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.category-btn:hover {
  background: rgba(0, 255, 213, 0.1);
  border-color: rgba(0, 255, 213, 0.3);
  color: #00ffd5;
}

.category-btn.active {
  background: rgba(0, 255, 213, 0.2);
  border-color: rgba(0, 255, 213, 0.5);
  color: #00ffd5;
}

.app-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.app-link {
  color: #eaeaea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
  min-width: 120px;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.app-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 198, 255, 0.3);
}

.live-link:hover {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.github-link:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.app-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.app-link {
  color: #eaeaea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: fit-content;
  min-height: 44px; /* Touch-friendly minimum size */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.app-link:hover {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #0a0a0a;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.45);
}

.app-link i {
  font-size: 16px;
}

/* MOBILE - Masaüstüyle aynı tema renkleri */
@media (max-width: 900px) {
  /* Arka plan + glow mobilde de aynı */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(120deg, var(--bg-dark), var(--bg-mid), var(--bg-accent));
    background-attachment: fixed;
    color: var(--text);
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
  }

  body::before {
    background: var(--glow-left);
    opacity: 0.15;
  }

  body::after {
    background: var(--glow-right);
    opacity: 0.15;
  }

  .hero-name {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    background: linear-gradient(90deg, #a8e6ff, #7dd3fc, var(--accent-cyan), var(--accent-teal));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  h2 {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .social-links {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    top: calc(10px + var(--safe-top));
    right: calc(10px + var(--safe-right));
    left: calc(10px + var(--safe-left));
    padding: 8px;
    gap: 4px;
    justify-content: center;
    border-radius: 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
  }

  .nav-link {
    font-size: 12px;
    padding: 10px 14px;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    color: var(--text);
  }

  .nav-link.active {
    background: rgba(0, 198, 255, 0.2);
    color: var(--accent-cyan);
  }

  .nav-link span {
    display: none;
  }

  .nav-link i {
    font-size: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
  }

  .project-card:active {
    border-color: var(--card-border-hover);
  }

  .project-icon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: #1a1a1a;
  }

  .project-title {
    font-size: 20px;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .project-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .project-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .blog-grid,
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card,
  .app-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
  }

  .blog-card:active,
  .app-card:active {
    border-color: var(--card-border-hover);
  }

  .blog-title,
  .app-title {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .blog-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .blog-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .blog-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: #1a1a1a;
  }

  .apps-btn {
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--card-border-hover);
  }

  .filter-btn.active,
  .category-btn.active {
    background: rgba(0, 198, 255, 0.2);
    border-color: var(--card-border-hover);
    color: var(--accent-cyan);
  }

  .tech-tag,
  .tag {
    background: rgba(0, 198, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 198, 255, 0.3);
  }

  .tabs-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 12px 16px;
  }

  .blog-filters,
  .app-categories {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn,
  .category-btn {
    font-size: 12px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .app-links {
    flex-direction: column;
    gap: 10px;
  }

  .app-link {
    width: 100%;
    justify-content: center;
  }

  /* Profile resmi mobilde küçült */
  .profile-wrapper {
    width: 250px;
    height: 250px;
  }

  .profile-img {
    width: 230px;
    height: 230px;
  }

  /* Hero başlık ve alt başlık mobilde küçült */
  .hero-name {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.5;
  }

  h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  section {
    margin: 30px auto;
    padding: 0 15px;
  }

  .hero {
    padding: 30px 15px;
    min-height: 40vh;
  }

  /* Card renk tutarlılığı - masaüstüyle aynı tema */
  .card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
  }

  /* Newsletter form mobilde */
  .newsletter-form {
    width: 100%;
  }

  .input-group {
    width: 100%;
  }

  .email-input {
    width: 100%;
    font-size: 16px; /* iOS zoom önleme */
  }

  .submit-btn {
    width: 100%;
    padding: 14px 24px;
  }

  /* Tech tags mobilde */
  .project-tech,
  .blog-tags {
    gap: 6px;
  }

  .tech-tag,
  .tag {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* Küçük mobil cihazlar (480px ve altı) - aynı tema */
@media (max-width: 480px) {
  body {
    background: linear-gradient(120deg, var(--bg-dark), var(--bg-mid), var(--bg-accent));
    background-attachment: fixed;
    color: var(--text);
  }

  body::before { background: var(--glow-left); opacity: 0.15; }
  body::after { background: var(--glow-right); opacity: 0.15; }

  .hero-name {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    background: linear-gradient(90deg, #a8e6ff, #7dd3fc, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  h2 {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .profile-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .profile-img {
    width: 180px;
    height: 180px;
    border-width: 3px;
  }

  .hero-name {
    font-size: 28px;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-top: 8px;
    line-height: 1.5;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .main-nav {
    top: calc(8px + var(--safe-top));
    right: calc(8px + var(--safe-right));
    left: calc(8px + var(--safe-left));
    padding: 6px;
    gap: 3px;
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
  }

  .nav-link {
    font-size: 11px;
    padding: 8px 10px;
    color: var(--text);
  }

  .nav-link.active {
    background: rgba(0, 198, 255, 0.25);
    color: var(--accent-cyan);
  }

  .nav-link i {
    font-size: 14px;
  }

  .social-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-link {
    font-size: 13px;
    padding: 10px 16px;
  }

  .project-card,
  .blog-card,
  .app-card {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
  }

  .project-title,
  .blog-title,
  .app-title {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .project-icon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: #1a1a1a;
  }

  .project-title,
  .blog-title,
  .app-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .project-description,
  .blog-description,
  .app-description {
    font-size: 14px;
    line-height: 1.6;
  }

  section {
    margin: 20px auto;
    padding: 0 10px;
  }

  .hero {
    padding: 20px 10px;
    min-height: 35vh;
  }

  .working-on-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
  }

  .working-on-card h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .working-on-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Newsletter form küçük ekranlarda */
  .newsletter-form {
    width: 100%;
  }

  .email-input {
    font-size: 16px; /* iOS zoom önleme */
    padding: 12px 16px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Tech tags küçük ekranlarda */
  .tech-tag,
  .tag {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Çok küçük ekranlar (320px ve altı) - aynı tema */
@media (max-width: 320px) {
  body {
    background: linear-gradient(120deg, var(--bg-dark), var(--bg-mid), var(--bg-accent));
    background-attachment: fixed;
    color: var(--text);
  }

  body::before { background: var(--glow-left); }
  body::after { background: var(--glow-right); }

  .hero-name {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    background: linear-gradient(90deg, #a8e6ff, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .main-nav {
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
  }

  .nav-link { color: var(--text); }
  .nav-link.active { color: var(--accent-cyan); }

  .project-card,
  .blog-card,
  .app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
  }

  .project-title,
  .blog-title,
  .app-title {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .profile-wrapper {
    width: 160px;
    height: 160px;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }

  .hero-name {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }

  .main-nav {
    top: calc(5px + var(--safe-top));
    right: calc(5px + var(--safe-right));
    left: calc(5px + var(--safe-left));
    padding: 4px;
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 10px;
    color: var(--text);
  }

  .nav-link.active {
    background: rgba(0, 198, 255, 0.3);
    color: var(--accent-cyan);
  }

  .social-link {
    font-size: 12px;
    padding: 8px 12px;
  }

  .project-card,
  .blog-card,
  .app-card {
    padding: 16px;
  }

  .project-title,
  .blog-title,
  .app-title {
    font-size: 16px;
  }

  .project-description,
  .blog-description,
  .app-description {
    font-size: 13px;
  }
}

/* WHAT I'M WORKING ON */
.working-on {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.working-on-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.1);
  text-align: center;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.working-on-card:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}

.working-on-card h2 {
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal), var(--accent-violet));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: gradient-text 4s ease infinite;
}

.working-on-card p {
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}
